/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 展会Entity
 * @author wudavid
 * @version 2017-05-10
 */
public class Exhibition extends DataEntity<Exhibition> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private Date starttime;		// 开始时间
	private Date endtime;		// 结束时间
	private List<ExhHall> exhHalls;//展馆
	/**
	 * 展馆ids
	 */
	private String exhIds;
	
	private String exhNames;
	
	public String getExhNames() {
		return exhNames;
	}

	public void setExhNames(String exhNames) {
		this.exhNames = exhNames;
	}

	public String getExhIds() {
		return exhIds;
	}

	public void setExhIds(String exhIds) {
		this.exhIds = exhIds;
	}

	public List<ExhHall> getExhHalls() {
		return exhHalls;
	}

	public void setExhHalls(List<ExhHall> exhHalls) {
		this.exhHalls = exhHalls;
	}

	public Exhibition() {
		super();
	}

	public Exhibition(String id){
		super(id);
	}

	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	
}